import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import path from "path"; // 引入 path 模块

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [uni()],
    resolve: {
      alias: {
        "@": path.resolve(__dirname, "./src"), // 配置 @ 指向 src 目录
      },
      extensions: ['.js', '.ts', '.vue', '.json'], // 确保这些扩展名被解析
    },
});
